*REPLICATION FOR  Peter White. "Crises and Crisis Generations: International Crises and Military Political Participation." 2017. Security Studies. 26(4): 575-605. 

***********

*descriptives
sum defstal_end19181_5 if actmilcabshare!=., detail 
sum defstal_end19186_10 if actmilcabshare!=., detail  
sum defstal_end191811_15 if actmilcabshare!=., detail  
sum defstal_end191816_20 if actmilcabshare!=., detail  
sum defstal_end191821_25 if actmilcabshare!=., detail  
sum defstal_end191826_30 if actmilcabshare!=., detail  
sum defstal_end191831_35 if actmilcabshare!=., detail  
sum defstal_end191836_40 if actmilcabshare!=., detail  
sum defstal_end191841_45 if actmilcabshare!=., detail  
sum defstal_end191846_50 if actmilcabshare!=., detail  
*
sum actmilcabshare if actmilcabshare!=.
sum clashwargrex_ongoingB if actmilcabshare!=.
sum notdefstal_end19181_5 if actmilcabshare!=.
sum sum_all_sevcrises if actmilcabshare!=.
sum rivalry if actmilcabshare!=.  
sum acdall if actmilcabshare!=.
sum lgdppc if actmilcabshare!=.
sum ksg_democracy if actmilcabshare!=.
sum new_leader if actmilcabshare!=.

*Fig 1
graph bar (mean) mil_cab_act gwf_military if year>=1964 & year<2009, over(year) ytitle(Proportion of states) title("")

*Fig 2
graph bar (mean) actmilcabshare if year>=1964 & year<2009, over(year) ytitle(Average Military Government Share) title("")

*main analysis

xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 clashwargrex_ongoingB ksg_democracy lgdppc new_leader, fe cluster(ccode)

xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 clashwargrex_ongoingB ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall, fe cluster(ccode)

xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 clashwargrex_ongoingB ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918, fe cluster(ccode)

*coefplot-fig3

xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 clashwargrex_ongoingB  ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918, fe cluster(ccode)

lincom defstal_end19181_5  + defstal_end191811_15 +defstal_end191826_30

*four years
xtreg f1.actmilcabshare defstal_end19181_4 defstal_end19185_8 defstal_end19189_12 defstal_end191813_16 defstal_end191817_20 defstal_end191821_24 defstal_end191825_28 defstal_end191829_32 defstal_end191833_36 defstal_end191837_40 defstal_end191841_44 defstal_end191845_50 clashwargrex_ongoingB ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918, fe cluster(ccode)

xtreg f1.actmilcabshare defstal_end19181_4 defstal_end19185_8 defstal_end19189_12 defstal_end191813_16 defstal_end191817_20 defstal_end191821_24 defstal_end191825_28 defstal_end191829_32 defstal_end191833_36 defstal_end191837_40 defstal_end191841_44 defstal_end191845_50 clashwargrex_ongoingB ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918, fe cluster(ccode)

*six years
xtreg f1.actmilcabshare defstal_end19181_6 defstal_end19187_12 defstal_end191813_18 defstal_end191819_24 defstal_end191825_30 defstal_end191831_36 defstal_end191837_42 defstal_end191843_50 clashwargrex_ongoingB  ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918, fe cluster(ccode)
coefplot, keep(defstal_end19181_6 defstal_end19187_12 defstal_end191813_18 defstal_end191819_24 defstal_end191825_30 defstal_end191831_36 defstal_end191837_42 defstal_end191843_50)vertical scheme(s1mono) xtitle(Years since end of crisis) ytitle(Effect on Military Government Share) title("")

xtreg f1.actmilcabshare defstal_end19181_6 defstal_end19187_12 defstal_end191813_18 defstal_end191819_24 defstal_end191825_30 defstal_end191831_36 defstal_end191837_42 defstal_end191843_50 clashwargrex_ongoingB  ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918, fe cluster(ccode)

*count model 1 (appendix)
xtnbreg cab_count_mil_act l.defstal_end19181_5 l.defstal_end19186_10 l.defstal_end191811_15 l.defstal_end191816_20 l.defstal_end191821_25 l.defstal_end191826_30 l.defstal_end191831_35 l.defstal_end191836_40 l.defstal_end191841_45 l.defstal_end191846_50 l.clashwargrex_ongoingB l.notdefstal_end19181_5 coldwar91 l.rivalry l.sum_all_sevcrises l.acdall l.ksg_democracy l.lgdppc l.new_leader c.time1918##c.time1918##c.time1918 if cab_count!=0, exposure(cab_count) fe

*count model 2 (appendix)
nbreg cab_count_mil_act l.defstal_end19181_5 l.defstal_end19186_10 l.defstal_end191811_15 l.defstal_end191816_20 l.defstal_end191821_25 l.defstal_end191826_30 l.defstal_end191831_35 l.defstal_end191836_40 l.defstal_end191841_45 l.defstal_end191846_50 l.clashwargrex_ongoingB l.notdefstal_end19181_5 coldwar91 l.rivalry l.sum_all_sevcrises l.acdall l.ksg_democracy l.lgdppc l.new_leader c.time1918##c.time1918##c.time1918 i.ccode if cab_count!=0, exposure(cab_count) cluster(ccode)

*additional time controls (appendix)
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader notdefstal_end19181_5 clashwargrex_ongoingB rivalry sum_all_sevcrises acdall i.year, fe cluster(ccode)

xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader notdefstal_end19181_5 clashwargrex_ongoingB f1.coldwar91 rivalry sum_all_sevcrises acdall c.gwf_duration##c.gwf_duration##c.gwf_duration, fe cluster(ccode)

xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 clashwargrex_ongoingB ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 actmilcabshare, fe cluster(ccode)

*plot with lagged DV
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 clashwargrex_ongoingB ksg_democracy lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 actmilcabshare, fe cluster(ccode)
coefplot, keep(defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50) vertical scheme(s1mono) xtitle(Years since crisis end) ytitle(Effect on Military Government Share) title("")

*other outcomes long-term (appendix)
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader clashwargrex_ongoingB f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 notdefstal_end19181_5 notdefstal_end19181_5 notdefstal_end19186_10 notdefstal_end191811_15 notdefstal_end191816_20 notdefstal_end191821_25 notdefstal_end191826_30 notdefstal_end191831_35 notdefstal_end191836_40 notdefstal_end191841_45 notdefstal_end191846_50, fe cluster(ccode)

**Omit potential outliers/influential states (appendix)

*omit democracies
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader notdefstal_end19181_5 clashwargrex_ongoingB f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 if ksg_democracy==0, fe cluster(ccode)

xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader notdefstal_end19181_5 clashwargrex_ongoingB f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 if gwf_military==0, fe cluster(ccode)

*omit major powers
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader notdefstal_end19181_5 clashwargrex_ongoingB f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 if maj_pow==0, fe cluster(ccode)

**other robustness checks (appendix)

*controls for different autoc_regime type
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader notdefstal_end19181_5 clashwargrex_ongoingB f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 gwf_personal gwf_military gwf_party, fe cluster(ccode)

*long-term internal conflict indicators
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader notdefstal_end19181_5 clashwargrex_ongoingB f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 acdall_end1_5 acdall_end6_10 acdall_end11_15 acdall_end16_20 acdall_end21_25 acdall_end26_30 acdall_end31_35 acdall_end36_40 acdall_end41_45 acdall_end46_50 , fe cluster(ccode)

*coups
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 ksg_democracy lgdppc new_leader notdefstal_end19181_5 clashwargrex_ongoingB f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918 coup_s coup_f, fe cluster(ccode)

*polity instead of democracy indicator
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 clashwargrex_ongoingB c.polity2##c.polity2 lgdppc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918, fe cluster(ccode)

*cinc score
xtreg f1.actmilcabshare defstal_end19181_5 defstal_end19186_10 defstal_end191811_15 defstal_end191816_20 defstal_end191821_25 defstal_end191826_30 defstal_end191831_35 defstal_end191836_40 defstal_end191841_45 defstal_end191846_50 clashwargrex_ongoingB ksg_democracy cinc new_leader notdefstal_end19181_5 f1.coldwar91 rivalry sum_all_sevcrises acdall f1.c.time1918##f1.c.time1918##f1.c.time1918, fe cluster(ccode)

